function Data3strayAssistant(argFromPusher) {
}

Data3strayAssistant.prototype = {
	setup: function() {
		Ares.setupSceneAssistant(this);
	},
	cleanup: function() {
		Ares.cleanupSceneAssistant(this);
	},
	button1Tap: function(inSender, event) {
		console.log("stray = " + this.$.stray.getValue());
	  console.log("where = " + this.$.where.getValue());
	  console.log("whereDetails = " + this.$.whereDetails.getValue());
	  console.log("feeding = " + this.$.feeding.getValue());
	  console.log("feeding details = " + this.$.feedingDetails.getValue());
	  this.$.submitService.setParametersString(
	  	"{"
		  +"\"geometry\" : {\"type\":\"Point\", \"coordinates\":[50.0,50.0]} "
			  +",\"cat\":{"
			  	+"\"byOwner\":\"no\""
			    +",\"stray\":\""+this.$.stray.getValue()+"\""
			    +",\"knowWhere\":\""+this.$.where.getValue()+"\""
			    +",\"whereDetails\":\""+this.$.whereDetails.getValue()+"\""
			    +",\"beingFed\":\""+this.$.feeding.getValue()+"\""
			    +",\"fedDetails\":\""+this.$.feedingDetails.getValue()+"\""
			  +"}"
		  +"}"
		  );
	  this.$.submitService.execute();
		this.controller.stageController.pushScene('thankyou');		
	},
	submitServiceSuccess: function(inSender, inResponse, inRequest) {
		console.log("submission succeded " + inSender + " " + inResponse + " " + inRequest);
		console.log("result = " + Object.toJSON(inResponse));		
	},
	submitServiceFailure: function(inSender, inError) {		
		console.log("submission failed " + inSender + " " + Object.toJSON(inError));
	}
};